<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<p:panel rendered="#{acaoBean.CRUDRendered}" id="painel">
		<f:facet name="header">
			<h:outputText value="#{label.acao_manutencao}" />
		</f:facet>

		<h:panelGrid columns="2">
			<h:outputText value="#{label.acao_id}" />
			<p:inputText value="#{acaoBean.registroSelecionado.idAcao}" disabled="true" />

			<h:outputText value="#{label.acao_acao}" />
			<p:inputText value="#{acaoBean.registroSelecionado.acao}" />

			<h:outputText value="#{label.acao_descricao}" />
			<p:inputText value="#{acaoBean.registroSelecionado.descricaoAcao}" />

			<h:outputText value="#{label.acao_modulo}" />
			<p:selectOneMenu converter="moduloConverter" value="#{acaoBean.registroSelecionado.modulo}">
				<f:selectItems value="#{acaoBean.moduloList}" var="modulo" itemValue="#{modulo}" itemLabel="#{modulo.nomeModulo}" />
			</p:selectOneMenu>

			<h:outputText value="#{label.abstract_persistence_ativo}" />
			<p:selectBooleanCheckbox value="#{acaoBean.registroSelecionado.ativo}" />

		</h:panelGrid>

		<h:panelGroup rendered="#{CRUDSession.grupoPersistenciaRendered}">
			<p:commandButton value="#{label.salvar}" process="painel" actionListener="#{CRUDSession.crudEmExibicao.salvarActionEvent}" update="@form"/>
			<p:commandButton value="#{label.voltar}" process="@this" immediate="true" actionListener="#{CRUDSession.crudEmExibicao.acessarPaginaListagem}" update="@form" />
		</h:panelGroup>

	</p:panel>
</ui:composition>
